﻿using SqlSugar;

namespace DaHuaSnapShot
{
    public class DBHelper
    {
        public static SqlSugarClient GetDb()
        {
            var Db = new SqlSugarClient(new ConnectionConfig()
            {
                ConnectionString = @"DataSource=CameraConfig.sqlite;Version=3;",  //设置连接字符串
                DbType = DbType.Sqlite,
                IsAutoCloseConnection = true
            });

            return Db;
        }
        //DELETE FROM CameraData;
        //DELETE FROM sqlite_sequence WHERE name = 'CameraData';  清空表并且重置id
    }
}
